package com.config.dao.impl;

import com.config.dao.UserDao;
import org.springframework.stereotype.Component;
//  @Component; 注解表示当前类需要spring 管理,  spring 扫描器会扫描


@Component
public class UserDaoImpl implements UserDao {

    @Override
    public void add() {
        System.out.println("执行UserDao==>add");
    }
}
